package com.yellowpage.bigdata.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * NspOnofflogRequsetSum entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NSP_ONOFFLOG_REQUSET_SUM")
public class NspOnofflogRequsetSum implements java.io.Serializable {

	// Fields

	private Integer onofflogRequsetSumId;
	private String logDate;
	private String regionCode;
	private String appVersion;
	private String operator;
	private String channelNo;
	private String optType;
	private Integer requestCount;
	private Integer createUser;
	private Date createTime;
	private String note;

	// Constructors

	/** default constructor */
	public NspOnofflogRequsetSum() {
	}

	/** full constructor */
	public NspOnofflogRequsetSum(String logDate, String regionCode,
			String appVersion, String operator, String channelNo,
			String optType, Integer requestCount, Integer createUser,
			Date createTime, String note) {
		this.logDate = logDate;
		this.regionCode = regionCode;
		this.appVersion = appVersion;
		this.operator = operator;
		this.channelNo = channelNo;
		this.optType = optType;
		this.requestCount = requestCount;
		this.createUser = createUser;
		this.createTime = createTime;
		this.note = note;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ONOFFLOG_REQUSET_SUM_ID", unique = true, nullable = false)
	public Integer getOnofflogRequsetSumId() {
		return this.onofflogRequsetSumId;
	}

	public void setOnofflogRequsetSumId(Integer onofflogRequsetSumId) {
		this.onofflogRequsetSumId = onofflogRequsetSumId;
	}

	@Column(name = "LOG_DATE", length = 64)
	public String getLogDate() {
		return this.logDate;
	}

	public void setLogDate(String logDate) {
		this.logDate = logDate;
	}

	@Column(name = "REGION_CODE", length = 10)
	public String getRegionCode() {
		return this.regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	@Column(name = "APP_VERSION", length = 128)
	public String getAppVersion() {
		return this.appVersion;
	}

	public void setAppVersion(String appVersion) {
		this.appVersion = appVersion;
	}

	@Column(name = "OPERATOR", length = 18)
	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column(name = "CHANNEL_NO", length = 18)
	public String getChannelNo() {
		return this.channelNo;
	}

	public void setChannelNo(String channelNo) {
		this.channelNo = channelNo;
	}

	@Column(name = "OPT_TYPE", length = 18)
	public String getOptType() {
		return this.optType;
	}

	public void setOptType(String optType) {
		this.optType = optType;
	}

	@Column(name = "REQUEST_COUNT")
	public Integer getRequestCount() {
		return this.requestCount;
	}

	public void setRequestCount(Integer requestCount) {
		this.requestCount = requestCount;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "NOTE", length = 128)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}